home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CDocument.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-16  |  1.0 KB  |  49 lines  |  [TEXT/KAHL]

  1. /* CDocument.c */
  2.  
  3. #include "CDocument.h"
  4. #include "CMyApplication.h"
  5.  
  6.  
  7. /* */            CDocument::CDocument()
  8.     {
  9.         Application->RegisterDocument(this);
  10.     }
  11.  
  12.  
  13. /* */            CDocument::~CDocument()
  14.     {
  15.         Application->DeregisterDocument(this);
  16.     }
  17.  
  18.  
  19. /* create a new blank file */
  20. void            CDocument::DoNewFile(void)
  21.     {
  22.         EXECUTE(PRERR(AllowResume,"CDocument::DoNewFile has not ben overridden."));
  23.     }
  24.  
  25.  
  26. /* read a file into the data structures */
  27. /* windows will update themselves as necessary */
  28. void            CDocument::DoOpenFile(FSSpec* TheSpec)
  29.     {
  30.         EXECUTE(PRERR(AllowResume,"CDocument::DoOpenFile has not been overridden."));
  31.     }
  32.  
  33.  
  34. /* print the document */
  35. void            CDocument::DoPrint(void)
  36.     {
  37.         EXECUTE(PRERR(AllowResume,"CDocument::DoPrint has not been overridden."));
  38.     }
  39.  
  40.  
  41. /* make document go away */
  42. /* cause windows to go away.  When all windows are gone, some mechanism */
  43. /* will delete the document's object */
  44. MyBoolean    CDocument::GoAway(void)
  45.     {
  46.         EXECUTE(PRERR(AllowResume,"CDocument::DoGoAway has not been overridden."));
  47.         return False;
  48.     }
  49.